package com.framework.admin.repository;

import com.framework.admin.model.SysDict;
import com.framework.common.repository.BaseJpaRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SysDictRepository extends BaseJpaRepository<SysDict, String> {
    SysDict findTopByCode(String code);

    SysDict findTopByPcodeAndCode(String pcode,String code);

    List<SysDict> findByPcodeOrderBySort(@Param("pcode") String pcode);

}